From: Henrik Enberg Date: Sun, 22 Jan 2006 05:51:48 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~8790^2~74 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5b6c0f83153703e6e5d48b01e324aa5e4216ed59;p=emacs.git *** empty log message *** --- diff --git a/lisp/mail/ChangeLog b/lisp/mail/ChangeLog index d0f732d43ef..fc1f12e0c34 100644 --- a/lisp/mail/ChangeLog +++ b/lisp/mail/ChangeLog @@ -1,3 +1,14 @@ +2006-01-22 Henrik Enberg + + * rmail.el (rmail): Go back to using find-file for reading in the + mail file. This avoids gratuitous modification of the file. + (rmail-decode-region): Doc string, cleanup. + (rmail-decode-by-content-type): New function. + (rmail-decode-messages): Use it. Add FROM and TO args and only + process messages in that region. + (rmail-get-new-mail): Call `rmail-decode-region' before + `rmail-process-new-messages'. + 2006-01-21 Alex Schroeder * rmail.el (rmail-decode-messages): Decoded encoded-words in diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el index f4dff6ced60..275119bce9e 100644 --- a/lisp/mail/rmail.el +++ b/lisp/mail/rmail.el @@ -1775,7 +1775,7 @@ If CODING is nil or an invalid coding system, decode by `undecided'." ;; Process each message in turn starting from the back and ;; proceeding to the front of the region. This is especially a good ;; approach since the buffer will likely have new headers added. - (save-excursion + (save-restriction (narrow-to-region from to) (let ((inhibit-read-only t) (case-fold-search nil)